< previous page page_361 next page >

Page 361
Summary
The programs in this chapter demonstrate several methods for drawing useful curves. Using parametric curves, you can convert the problem of drawing a complex shape into one of connecting a series of points with line segments. By transforming the points before you connect them, you can draw complex stretched and rotated curves in a simple manner.
Other types of curves show the general shape of a sequence of data values. Polynomial least squares curves minimize the distance between a polynomial function and a set of data points. Using a polynomial of an appropriate degree, you can emphasize polynomial trends in a confusing data set. Hermite curves and B-splines follow a set of points even more approximately. You can use these curves to show the overall shape of a series of points smoothly.

 
< previous page page_361 next page >